{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "a8869aa5",
   "metadata": {},
   "outputs": [],
   "source": [
    "# extensions=all\n",
    "#1. 调用request模块\n",
    "import requests\n",
    "# 2.GET\n",
    "#3. url\n",
    "text_url=\"https://restapi.amap.com/v3/place/text?parameters\"\n",
    "#4.准备参数，用于交换数据payload\n",
    "payload={\n",
    "    \"key\":\"54ae3dff38ebde61fcf16f6cfdc01bf7\",\n",
    "    \"keywords\":\"美食\",\n",
    "    \"types\":\"高等院校\",\n",
    "    \"city\":\"北京\"\n",
    "}\n",
    "#5.发起请求\n",
    "r=requests.get(url=text_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "5a550999",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "875f91af",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '896',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '台基厂大街10号(东郊民巷小学旁)',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '160.00',\n",
       "    'opentime2': '10:00-23:00',\n",
       "    'rating': '4.5',\n",
       "    'open_time': '10:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3c9f300f8eeb55cdd740013c307170f1'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e3aa3a61bb4b1e5bccbcb471533b9fbb'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9ac1d34aaaea58bbe70ad62ecc2c597f'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '东城区',\n",
       "   'name': '松鹤楼(台基厂店)',\n",
       "   'location': '116.411888,39.903518',\n",
       "   'tel': '010-65279255;010-65278195',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7C2QO'},\n",
       "  {'parent': [],\n",
       "   'address': '正义路8号(市政府斜对面)',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '45.00',\n",
       "    'opentime2': '11:00-14:00；17:00-24:00',\n",
       "    'rating': '4.6',\n",
       "    'open_time': '11:00-14:00 17:00-24:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/537edfdfa310b9502c0cd825'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5aa43a3320268674fcf87e70b300ee68'},\n",
       "    {'title': [],\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN011IydfnjrCcAJ8PY_!!3695320962-0-kbcontentapng.jpg'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '东城区',\n",
       "   'name': '隆和居美食城(正义路)',\n",
       "   'location': '116.406519,39.903387',\n",
       "   'tel': '010-65263265',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7ZDMP'},\n",
       "  {'parent': [],\n",
       "   'address': '正义路东交民巷28号楼A座(首都宾馆北门)',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '50.00',\n",
       "    'opentime2': '10:00-23:00',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '10:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;四川菜(川菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/17acb2e4d3c3ee25048ed80977bc34f0'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1da129ada50c1c43d576e81ac5b11d15'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/28cdfe6c0f1e49e6bf94b4d3a960ccee'}],\n",
       "   'typecode': '050102',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '东城区',\n",
       "   'name': '静园川菜(东交民巷店)',\n",
       "   'location': '116.408019,39.902449',\n",
       "   'tel': '010-65244156;13910469318',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7I1TH'},\n",
       "  {'parent': 'B000A7XXNI',\n",
       "   'address': '东交民巷甲23号东交民巷饭店1层',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '85.00',\n",
       "    'opentime2': '11:00-14:00；17:00-21:00',\n",
       "    'rating': '4.3',\n",
       "    'open_time': '11:00-14:00 17:00-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6b067ff72d5c9ced0535a75011e9793b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b71a033996b247961aeb82b09a2ed5ed'},\n",
       "    {'title': [],\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN015WzrlQ1IydhyKG1k3_!!3695320962-0-kbcontentapng.jpg'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '东城区',\n",
       "   'name': '老巷子菜馆(东交民巷)',\n",
       "   'location': '116.407764,39.902749',\n",
       "   'tel': '010-65235576;010-65258019',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFH03O1H'},\n",
       "  {'parent': 'B0FFG4PDVH',\n",
       "   'address': '前门东大街甲2号(崇文门地铁站A1西北口步行420米)',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '87.00',\n",
       "    'opentime2': '07:00-21:30',\n",
       "    'rating': '4.9',\n",
       "    'open_time': '07:00-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;中式素菜馆',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/538dcb703daee16d5a95ac909eed3a7f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7906afa2d1d866abf8ba12ba39276a57'},\n",
       "    {'title': '菜品',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8c38ee8e83038542627e4425f103e302'}],\n",
       "   'typecode': '050120',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '东城区',\n",
       "   'name': '功德林(前门店)',\n",
       "   'location': '116.411667,39.900409',\n",
       "   'tel': '010-67020867;010-65112542',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7ZDMB'},\n",
       "  {'parent': [],\n",
       "   'address': '前门东大街前门23号院内(正阳门东10米)',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '330.00',\n",
       "    'opentime2': '11:00-14:00；17:00-21:00',\n",
       "    'rating': '4.7',\n",
       "    'open_time': '11:00-14:00 17:00-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5bad91d69daf35009c80068380e15bad'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/019817a70e1ac55e47dd07b98004a543'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0aafe4df3d0f4c38678f1bf55239ec5e'}],\n",
       "   'typecode': '050117',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '东城区',\n",
       "   'name': '温鼎府',\n",
       "   'location': '116.401055,39.901156',\n",
       "   'tel': '18511277666',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGY9C9P'},\n",
       "  {'parent': 'B000A8UR3U',\n",
       "   'address': '北翔凤胡同11号',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '120.00',\n",
       "    'opentime2': '11:20-22:00',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '11:20-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1eb6c1bc3277267e77953dca9a8b343a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/77db22e9423b10b933b679d9353afb33'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/be978174972d404cf1673b80eb9a9162'}],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '东城区',\n",
       "   'name': '利群烤鸭店(前门店)',\n",
       "   'location': '116.406294,39.898243',\n",
       "   'tel': '010-67025681;010-67055578',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7ZRQ8'},\n",
       "  {'parent': [],\n",
       "   'address': '东交民巷44号',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '170.00',\n",
       "    'opentime2': '11:00-14:30；17:00-19:30',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '11:00-14:30 17:00-19:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;北京菜',\n",
       "   'photos': [{'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/17a27caf86718b37aec0150021863edd'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/679d6d02746e1016f54f1e0ea6f1722c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/537edfdfa310b9502c0cd73b'}],\n",
       "   'typecode': '050111',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '东城区',\n",
       "   'name': '全聚德烤鸭店(天安门店)',\n",
       "   'location': '116.400068,39.901436',\n",
       "   'tel': '010-65132855;010-65122265',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A83BNF'},\n",
       "  {'parent': 'B000A10FBB',\n",
       "   'address': '东长安街33号北京饭店C座7层',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '965.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.0',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/362df50fa1153266de9af34c088570a0'},\n",
       "    {'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7786a10f4a215417606e43c3616510e5'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '312',\n",
       "   'adname': '东城区',\n",
       "   'name': '北京饭店谭家菜',\n",
       "   'location': '116.408321,39.908792',\n",
       "   'tel': '010-65137766',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A81JDJ'},\n",
       "  {'parent': 'B0FFHQNKQJ',\n",
       "   'address': '王府井大街200号工美大厦1层',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '27.00',\n",
       "    'opentime2': '06:00-21:30',\n",
       "    'rating': '4.8',\n",
       "    'open_time': '06:00-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;快餐厅;麦当劳',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/50923116ffd64664efd03b861d97d06d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0b7b2d2ada04dbeb45b89fa775a66ebf'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/02a9c69137077c0e0eafacc237656e00'}],\n",
       "   'typecode': '050302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '东城区',\n",
       "   'name': '麦当劳(新王府井店)',\n",
       "   'location': '116.411633,39.910714',\n",
       "   'tel': '010-65120499',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A84AQB'},\n",
       "  {'parent': 'B0FFH14X68',\n",
       "   'address': '崇文门西打磨厂7号宝鼎大厦3楼',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '53.00',\n",
       "    'opentime2': '10:30-20:30',\n",
       "    'rating': '4.6',\n",
       "    'open_time': '10:30-20:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;外国餐厅;意式菜品餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f1ded2d1f647eda2248ad6da9886d917'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8b221ff81a1245ea385e11d451f92165'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5397b33ba310b133764b971e'}],\n",
       "   'typecode': '050205',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '东城区',\n",
       "   'name': '萨莉亚意式餐厅(崇文门新活馆店)',\n",
       "   'location': '116.413713,39.899559',\n",
       "   'tel': '010-67083255',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFHYJTI2'},\n",
       "  {'parent': 'B000A83LNO',\n",
       "   'address': '东长安街1号东方广场东方新天地BB02A号铺',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '80.00',\n",
       "    'opentime2': '11:00-21:30',\n",
       "    'rating': '4.6',\n",
       "    'open_time': '11:00-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2ffdc93a070af9b6eb4f0ebac801e2ce'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9b558099f692d1cd28e0f446b6a62009'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0ec5c12d1e5450aeb0f4cdc19813b3af'}],\n",
       "   'typecode': '050202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '东城区',\n",
       "   'name': '一风堂(东方广场店)',\n",
       "   'location': '116.412055,39.909458',\n",
       "   'tel': '010-85182570',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFF3SM8N'},\n",
       "  {'parent': 'B0I6B5NZCM',\n",
       "   'address': '王府井大街301号王府商厦6层',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '241.00',\n",
       "    'opentime2': '11:00-22:00',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '11:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/18e73371655d404efe496d70c23398bf'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/963bf2fb6c9e013fd3ebe9f9efe81c68'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7975592fcc6e8751fd3008d06b6d7cf0'}],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '东城区',\n",
       "   'name': '大董(王府商厦王府井店)',\n",
       "   'location': '116.410700,39.910316',\n",
       "   'tel': '010-65599967;010-65288802;4000989809',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A9P8XG'},\n",
       "  {'parent': 'B0FFG4V0HO',\n",
       "   'address': '台基厂南口西打磨厂街3号楼',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '64.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.6',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;综合酒楼',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4a2246906d6b716a5dcf3d8d849c9a81'},\n",
       "    {'title': '湖南常德炖牛杂',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/2212244538462/O1CN01HdLXGc2CNeCgMLVru_!!2212244538462-0-koubei.jpg'},\n",
       "    {'title': '小炒有机菜花盖饭',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i2/2212149374409/O1CN01uhtaOG1iRMx5kOx13_!!2212149374409-0-koubei.jpg'}],\n",
       "   'typecode': '050101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '东城区',\n",
       "   'name': '龙福居外卖',\n",
       "   'location': '116.410580,39.899408',\n",
       "   'tel': '010-67015416',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFAJNAV'},\n",
       "  {'parent': 'B000A1848A',\n",
       "   'address': '王府井大街218号楼王府井书店B1层',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '79.00',\n",
       "    'opentime2': '09:30-21:30',\n",
       "    'rating': '4.5',\n",
       "    'open_time': '09:30-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;快餐厅;呷哺呷哺',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8f80dceb6eba646ecd025ee8e2608f87'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8697ecb29bacdda5ab25eb2d5d76ae8e'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/03054f4d1f1aea7c22fc3d5d182bc466'}],\n",
       "   'typecode': '050311',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '东城区',\n",
       "   'name': '呷哺呷哺(王府井书店)',\n",
       "   'location': '116.412499,39.910365',\n",
       "   'tel': '010-65238285;4008177676',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFG6W0AR'},\n",
       "  {'parent': 'B000A84MRF',\n",
       "   'address': '前门东大街甲2号1-B1层',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '36.00',\n",
       "    'opentime2': '05:00-23:00',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '05:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cf64ea8e22533b4bba864a3b10c322fb'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/881c3e1adadd0de058799f5cc47fe819'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fceedc3b3d43bfc02fff0aa7016f8f86'}],\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '302',\n",
       "   'adname': '东城区',\n",
       "   'name': '肯德基(前门东大街店)',\n",
       "   'location': '116.400103,39.899500',\n",
       "   'tel': '4009200715;010-67011950;010-67010282',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A8WCAL'},\n",
       "  {'parent': 'B000A1848A',\n",
       "   'address': '王府井大街218号(王府井书店美食广场B1楼)',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '89.00',\n",
       "    'opentime2': '12:00-21:00',\n",
       "    'rating': '4.6',\n",
       "    'open_time': '12:00-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f717b4ee74592e301ee795e1959097a2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1b6337dac36217888c442707cc4f6f85'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5a466523c11253a0a600a06992879830'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '东城区',\n",
       "   'name': '辉佐参鸡汤(王府井店)',\n",
       "   'location': '116.411976,39.910390',\n",
       "   'tel': '010-65130095',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFW57VI'},\n",
       "  {'parent': 'B000A83LNO',\n",
       "   'address': '东长安街1号东方广场东方新天地商场地铁层LG28号',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '36.00',\n",
       "    'opentime2': '09:30-21:00',\n",
       "    'rating': '4.6',\n",
       "    'open_time': '09:30-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c84c289a3e49f3cf9a89678b32c04e33'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/582bf7491e17f6f84bda7241e5f678fb'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7513d4b15add3a98e094cc6bb8f94f4d'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '东城区',\n",
       "   'name': '大食代(东方新天地店)',\n",
       "   'location': '116.414628,39.908991',\n",
       "   'tel': '010-85186182;010-58177006',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A83LP8'},\n",
       "  {'parent': 'B000A48169',\n",
       "   'address': '王府井大街192号2层',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '35.00',\n",
       "    'opentime2': '00:00-24:00',\n",
       "    'rating': '4.7',\n",
       "    'open_time': '24小时营业',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/be1d148709c9307f451ec7d293c370c5'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/be8790070446c8d81ede1e93182f0039'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e4f67f8f6069e7f970ece61c13bae5b9'}],\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '东城区',\n",
       "   'name': '肯德基(建华店)',\n",
       "   'location': '116.411484,39.911198',\n",
       "   'tel': '4009200715',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A80P30'},\n",
       "  {'parent': 'B000A48169',\n",
       "   'address': '南河沿大街华龙街中段111号',\n",
       "   'distance': [],\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '50.00',\n",
       "    'opentime2': '11:00-14:00；17:00-21:00',\n",
       "    'rating': '4.2',\n",
       "    'open_time': '11:00-14:00 17:00-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '北京市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9dc06e835c2c6bcb2bd05dacd2fc0eb2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/23fe6627267123115c6fc89749807b5b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/1be30204-48c5-4dfc-a55b-c5e2d07d5d78.jpg'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '东城区',\n",
       "   'name': '毛小青美食城',\n",
       "   'location': '116.407028,39.910901',\n",
       "   'tel': '010-65129110',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A2BB76'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "88c98553",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
